package com.example.demo.common;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;

public class Test05 {

    public static void main(String[] args) {


        List<Integer> intList = new ArrayList<>();
        for (int i = 0; i < 61; i++) {
            intList.add(i);
        }


        List<Integer> ss = intList.stream().filter(x -> x%3 == 0).collect(Collectors.toList());
        System.out.println(ss);
        ss = intList.stream().filter(x -> x%3 == 1).collect(Collectors.toList());
        System.out.println(ss);
        ss = intList.stream().filter(x -> x%3 == 2).collect(Collectors.toList());
        System.out.println(ss);

        /*System.out.println(Integer.valueOf("null"));

        System.out.println(Double.valueOf("6.9234234111").intValue());

        System.out.println(Integer.parseInt("6.1234234111"));*/

        /*while (true) {
            //try {
                List<Integer> intList = new ArrayList<>();
                List<Integer> list2 = intList;

                intList.add(1);
                intList.add(1);
                intList.add(1);
                intList.add(1);
                intList.add(1);

                intList.clear();
                //intList = null;

                System.out.println(intList);
                System.out.println(list2);

                //TimeUnit.SECONDS.sleep(5);
            //} catch (Exception e) {
            //    System.out.println(111111);
            //}
        }*/
    }
}
